package com.gupao.study.interpreter.calculate.arithmetic;

import com.gupao.study.interpreter.calculate.Interpreter;
import com.gupao.study.interpreter.calculate.IArithmeticInterpreter;

public class SubInterpreter extends Interpreter {
    public SubInterpreter(IArithmeticInterpreter left, IArithmeticInterpreter right) {
        super(left, right);
    }

    public int interpret() {
        return this.left.interpret() - this.right.interpret();
    }
}